package com.lykj.modules.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lykj.modules.shop.entity.ServerArea;
import com.lykj.modules.shop.vo.ServerAreaVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 区域服务商Mapper接口
 *
 * @author ruoyi
 * @date 2022-08-14
 */
public interface ServerAreaMapper extends BaseMapper<ServerArea> {

    //selectServerAreaPage
    List<ServerAreaVo> selectServerAreaPage(IPage page, ServerAreaVo serverArea);
    //queryByUserId
    @Select("select * from lykj_server_area where user_id = #{userId}")
    ServerArea queryByUserId(Long userId);
}
